package EvaTCPL;

public class EvaTCPLmul extends EvaTCPLaexpression
{

  public EvaTCPLmul(EvaTCPLaexpression e1, EvaTCPLaexpression e2)
    {
      super(e1,e2);
    }

  /** Evaluate this arithmetic expression. */
  public double evaluate()
    {
      return sons[0].evaluate() * sons[1].evaluate();
    }

  public String toString()
    {
      return "("+sons[0].toString()+")*("+sons[1].toString()+")";
    }

}
